﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using System.ComponentModel;

namespace TravelWeb.Models
{
    [Bind(Exclude = "OrderID")]
    public class Order
    {
        [ScaffoldColumn(false)]
        public int OrderID { get; set; }
        [ScaffoldColumn(false)]
        public int? CustomerID { get; set; }
        [ScaffoldColumn(false)]
        public int? TourID { get; set; }
        [ScaffoldColumn(false)]
        public int? ScheduleID { get; set; }
        public String PaymentType { get; set; }
        [DisplayName("Number of adults")]
        public int numOfAdult { get; set; }
        [DisplayName("Number of children")]
        public int numOfChild { get; set; }
        [ScaffoldColumn(false)]
        public double TotalPrice { get; set; }
        [ScaffoldColumn(false)]
        public int? PromotionID { get; set; }
        [DisplayName("Date order created")]
        public DateTime OrderDate { get; set; }
        [ScaffoldColumn(false)]
        public String Status { get; set; }

        public Customer Customer { get; set; }
        public Tour Tour { get; set; }
        public Schedule Schedule { get; set; }
        public Promotion Promotion { get; set; }
    }

    public class OrderKey
    {
        public int? TourID { get; set; }
        public int? ScheduleID { get; set; }
        public int? PromotionID { get; set; }
    }

}